package com.qijian.business.domain.vo;

import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * 采购入库/领料出库报表
 */
@Data
@ToString
public class StoreItemInOutBoundReport {
    // 入库/出库
    private String dataType;
    private BigDecimal quantity;
    private String ym;


    public BigDecimal getQuantity() {
        if (null != this.quantity) {
            return this.quantity.setScale(2, RoundingMode.HALF_UP);
        }
        return BigDecimal.ZERO;
    }
}
